
cmake_minimum_required(VERSION 3.5.1)



add_subdirectory( deciders )
add_subdirectory( optimizers )
#add_subdirectory( rss )
add_subdirectory( smoothers )



add_library( task  task.cc )
target_link_libraries( task  
                            common::status
                            planning::reference_line_info
                            planning::frame
                            planning::discretized_trajectory
                            planning::publishable_trajectory
                            planning::proto)

add_library( task_factory  task_factory.cc )
target_link_libraries ( task_factory
task
planning_proto

creep_decider
lane_change_decider
open_space_fallback_decider
open_space_pre_stop_decider
open_space_roi_decider
path_assessment_decider
path_bounds_decider
path_decider
path_lane_borrow_decider
rule_based_stop_decider
speed_bounds_decider
speed_decider

open_space_trajectory_provider
open_space_trajectory_partition
path_time_heuristic_optimizer
piecewise_jerk_path_optimizer
piecewise_jerk_speed_optimizer

# "//modules/planning/tasks/rss:decider_rss",
)

install(TARGETS task
                task_factory
        EXPORT  apollo-export
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
        RUNTIME DESTINATION bin
        INCLUDES DESTINATION .
        )